package com.itqf.demo02;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Description:  工作类  具体需要特定时间执行的某个"任务"  备份数据库，定时还款
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/10/15
 * @Time: 上午11:17
 */
public class MyJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH-mm:ss SSS");


        System.out.println("双11秒杀活动开始啦，快来抢购啊"+ simpleDateFormat.format(new Date()));


    }
}
